﻿
namespace Patterns4Net.Core.Patterns
{
    using Mono.Cecil;
    using Patterns4Net.Attributes.DesignPatterns;

    [Immutable]
    public class SimpleFactoryMethod : PatternBase
    {
        public SimpleFactoryMethod(MethodDefinition targetMethod)
        {
            this.TargetMethod = targetMethod;
        }

        public MethodDefinition TargetMethod { get; private set; }

        public override string Name
        {
            get { return "Simple Factory Method"; }
        }
    }
}
